package com.xiashitech.agent.instrumentation.apachehttpclient.v2v3.inst;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;

import java.util.Arrays;
import java.util.List;

import static java.util.Collections.singletonList;

//@AutoService(InstrumentationModule.class)
public class ApacheHttpClientv2v3InstrumentationModule extends InstrumentationModule {

  public ApacheHttpClientv2v3InstrumentationModule() {
    super("apache-httpclient", "apache-httpclient-v2v3");
  }

  @Override
  public List<TypeInstrumentation> typeInstrumentations() {
    return singletonList(new ApacheHttpClientv2v3Instrumentation());
  }

  public List<String> getAdditionalHelperClassNames() {
    return Arrays.asList("com.xiashitech.agent.instrumentation.apachehttpclient.common.v2v3.HttpClientHeaderGetter");
  }
}
